<template>
  <a-drawer
    width="30%"
    :title="formTitle"
    :label-col="4"
    :wrapper-col="14"
    :visible="open"
    :body-style="{ height: 'calc(100vh - 100px)', overflow: 'auto' }"
    @close="cancel"
  >
    <a-form-model ref="form" :model="form" :rules="rules" layout="vertical">
      <a-spin :spinning="spinning" :delay="delayTime" tip="Loading...">
        <a-row :gutter="32" style="width: 60%; left: 20%">
          <a-col :span="24">
            <a-form-model-item label="文号" prop="tz00501">
              <a-input v-model="form.tz00501" placeholder="请输入文号" />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="印发时间" prop="tz00502">
              <a-date-picker
                style="width: 100%"
                v-model="form.tz00502"
                valueFormat="YYYY-MM-DD"
                format="YYYY-MM-DD"
                allow-clear
                @keyup.enter.native="handleQuery"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="制度名称" prop="tz00503">
              <a-input v-model="form.tz00503" placeholder="请输入制度名称" />
            </a-form-model-item>
          </a-col>

          <a-col :span="24">
            <a-form-model-item label="上传文件" prop="fileName">
              <file-upload
                :fileList="fileList"
                @afterUpload="uploadCompleteFile"
                @removeFile="handlerRemoveFile"
              ></file-upload>
            </a-form-model-item>
          </a-col>
        </a-row>
      </a-spin>
      <div class="bottom-control">
        <a-space>
          <a-button @click="cancel"> 取消 </a-button>
          <a-button type="primary" @click="submitForm"> 保存 </a-button>
        </a-space>
      </div>
    </a-form-model>
  </a-drawer>
</template>
<script>
import BizTaizhang005EditForm from "./BizTaizhang005Form";
export default {
  ...BizTaizhang005EditForm,
};
</script>
